package org.unisannio.picture.broadcast.remote;

import org.unisannio.remote.FactoryRemote;
import org.unisannio.remote.RemoteBroadcaster;

import android.app.Application;

public class RemotePictureApp extends Application {
	
	private RemoteBroadcaster broadcaster=null;
	private static final String CARLETTO_IP="192.168.1.5";
	private static final int CARLETTO_PORT=2222;
	
	
	public RemoteBroadcaster getBroadcaster() {
		if (broadcaster==null){
			broadcaster=new FactoryRemote().getRemoteBroadcaster(getApplicationContext(),CARLETTO_PORT+1111);
		}
		broadcaster.setServer("superPeer@"+CARLETTO_IP+":"+CARLETTO_PORT);
		return broadcaster;
	}

}
